/* Teacher.css */
:root {
  --primary-color: #4caf50; /* 更柔和的绿色 */
  --secondary-color: #81c784;
  --light-green: #e8f5e9;
  --gold-color: #ff9800; /* 橙色按钮 */
  --background-gradient: linear-gradient(135deg, #fff5f5, #ffe8e8); /* 浅粉色背景渐变 */
}

/* 整体布局 */
.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--background-gradient); /* 背景渐变 */
  min-height: 100vh;
}

/* 顶部标题 */
.header {
  text-align: center;
  margin: 30px 0 40px;
  position: relative;
}

.header h1 {
  color: var(--primary-color);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--gold-color);
  border-radius: 2px;
}

.subtitle {
  color: #7da453;
  font-size: 20px;
  font-weight: 500;
  margin-top: 20px;
  letter-spacing: 1px;
}

/* 标签栏样式 */
.tab-container {
  margin: 0 -20px 30px;
  position: relative;
}

.tab-container .ant-tabs-nav {
  margin-bottom: 0;
}

.tab-container .ant-tabs-nav-wrap {
  justify-content: center;
}

.tab-container .ant-tabs-tab {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 20px;
  margin: 0 5px;
  color: #666;
  transition: all 0.3s;
}

.tab-container .ant-tabs-tab:hover {
  color: var(--primary-color);
}

.tab-container .ant-tabs-tab-active {
  color: var(--primary-color);
  font-weight: 600;
  transform: translateY(-2px);
}

.tab-container .ant-tabs-ink-bar {
  background: var(--gold-color);
  height: 3px;
}

/* 海报网格布局 */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 1100px) {
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .poster-grid {
    grid-template-columns: 1fr;
  }
}

/* 海报卡片 */
.poster-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
  border: none;
  position: relative;
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 海报预览区域 */
.poster-preview {
  position: relative;
  overflow: hidden;
  height: 260px; /* 增加高度以适应图片 */
}

/* 海报图片样式 */
.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  display: block;
}

/* 遮罩层 - 初始状态不可见 */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(76, 175, 80, 0.85); /* 半透明绿色 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* 初始不可见 */
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* 悬停时显示遮罩层 */
.poster-card:hover .hover-overlay {
  opacity: 1;
}

/* 下载按钮 */
.download-btn {
  background: var(--gold-color);
  border-color: var(--gold-color);
  color: #fff;
  font-weight: bold;
  padding: 10px 24px;
  height: auto;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.download-btn:hover {
  background: #f57c00;
  border-color: #f57c00;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}



.poster-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.poster-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}



/* 分页器 */
.pagination-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.pagination-container .ant-pagination-item {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination-container .ant-pagination-item:hover,
.pagination-container .ant-pagination-item:focus {
  border-color: var(--primary-color);
}

.pagination-container .ant-pagination-item-active {
  background: var(--gold-color);
  border-color: var(--gold-color);
}

.pagination-container .ant-pagination-item-active a {
  color: white !important;
}

/* 无数据样式 */
.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}

.no-data p {
  font-size: 18px;
  color: #666;
  margin-top: 20px;
}

.dragon-boat-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%234caf50" d="M50 10L70 30H30L50 10z"/><circle cx="20" cy="45" r="10" fill="%23FF9800"/><circle cx="80" cy="45" r="10" fill="%23FF9800"/><path d="M20 50Q40 20 80 50" stroke="%234caf50" stroke-width="4" fill="none"/></svg>') center/contain no-repeat;
}